package com.gwd.task.services;

import com.gwd.task.model.PageUtils;
import com.gwd.task.model.ProjectDTO;
import com.gwd.task.model.ProjectModuleDTO;

import java.util.List;

/**
 * @author zhiyongming
 * @date 2020/11/19 14:39
 */
public interface ProjectServer {

    List<ProjectDTO> findByGroup(Long groupId);

    List<ProjectDTO> findAll();

    void save(ProjectDTO dto, List<ProjectModuleDTO> list);

    void saveModules(Long projectId, Long groupId, List<ProjectModuleDTO> list);

    void active(Long projectId);

    void remove(Long projectId);

    PageUtils findByPage(ProjectDTO dto, PageUtils pageUtils);

    ProjectDTO findById(Long projectId);
}
